<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Adidas 后台页面跳转提示</title>
<style type="text/css">
*{ 
    padding: 0; 
    margin: 0; 
}
body{ 
    background: #fff; 
    font-family: '微软雅黑'; 
    color: #000; 
    font-size: 16px; 
}
.main{
    width:50%;
    height:400px;
    /*border:solid 1px #000;*/
    margin:10% auto;
    position: relative;
}
.img{
    margin:0 auto;
}
.error{
    width:50%;
    font-size:40px;
    position: absolute;
    margin-left: 10px;
    top:10%;
    right:15%;
}
.jump{
    position: absolute;
    top:30%;
    right:40%;
    clear:both;
    margin-top:40px;
}
</style>
</head>
<div class="main">
    <img src="__PUBLIC__/Admin/images/dispatch_template/failIcon.png" width="200" class="img">
    <p class="error"><?php echo($error); ?>！</p>
    <p class="jump">
        <b id="wait"><?php echo($waitSecond); ?></b> 秒后页面将自动跳转
    </p>
    <a id="href" id="btn-now" href="<?php echo($jumpUrl); ?>" style="display: none"></a> 
</div>
<script type="text/javascript">
(function(){
 var wait = document.getElementById('wait'),href = document.getElementById('href').href;
 var interval = setInterval(function(){
        var time = --wait.innerHTML;
        if(time <= 0) {
            location.href = href;
            clearInterval(interval);
        };
     }, 1000);
  window.stop = function (){
     console.log(111);
     clearInterval(interval);
 }
 })();
</script>
</body>
</html>
